package com.dss.auto_deploy.enums;

/**
 * @Description:
 * @author: dongshoushan
 * @date: 2022年06月16日 13:49
 */
public enum LastStatusEnum implements BaseEnum {

    INIT(0, "空闲"),
    BUILDING(1, "编译中"),
    BUILD_FAILED(2, "编译失败"),
    BUILD_SUCCESS(3, "编译成功"),
    UPLOAD(4, "代码上传"),
    START_FAILED(5, "启动失败"),
    START_SUCCESS(6, "启动成功"),
    ;

    private Integer code;
    /**
     * 描述信息
     */
    private String desc;

    LastStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
